/*
 * XML Type:  RecurringInterResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringInterResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringInterResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringInterResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractRecurringInterResponseImpl implements net.ofx.types.x2003.x04.RecurringInterResponse
{
    
    public RecurringInterResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RECURRINST$0 = 
        new javax.xml.namespace.QName("", "RECURRINST");
    private static final javax.xml.namespace.QName INTERRS$2 = 
        new javax.xml.namespace.QName("", "INTERRS");
    
    
    /**
     * Gets the "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions getRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RECURRINST" element
     */
    public void setRECURRINST(net.ofx.types.x2003.x04.RecurringInstructions recurrinst)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$0);
            }
            target.set(recurrinst);
        }
    }
    
    /**
     * Appends and returns a new empty "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions addNewRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$0);
            return target;
        }
    }
    
    /**
     * Gets the "INTERRS" element
     */
    public net.ofx.types.x2003.x04.InterResponse getINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().find_element_user(INTERRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "INTERRS" element
     */
    public void setINTERRS(net.ofx.types.x2003.x04.InterResponse interrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().find_element_user(INTERRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterResponse)get_store().add_element_user(INTERRS$2);
            }
            target.set(interrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERRS" element
     */
    public net.ofx.types.x2003.x04.InterResponse addNewINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().add_element_user(INTERRS$2);
            return target;
        }
    }
}
